$duration: 600ms;

.index-root {
    width: 100vw;
    height: 100vh;
}

.index-logo{
    position: absolute;
    width: 150px;
    height: 150px;
    top: 90px;
    left: calc(50% - 75px);
    transform-origin: top left;
    animation: logoload $duration linear 1;
}

@keyframes logoload {
     0% {
        top:90px;
        // left: -150px;
        transform: rotateZ(-90deg);
     }
     100% {
        top: 90px;
        // left: calc(50% - 75px);
        transform: rotateZ(0deg);
     }
}

.index-title {
    position: absolute;
    font-size: 48px;
    font-family: PingFangSC-bold;
    color: #fff;
    width: 200px;
    text-align: center;
    top: 280px;
    left: calc(50% - 100px);
    animation: titleload $duration linear 1;
}

@keyframes titleload {
    0% {
        opacity: .5;
        transform: scale(.5);
    }
    100% {
      opacity: 1;
      transform: scale(1);
    }
}

.start-btn-position{
    position: absolute;
    width: 100%;
    bottom: 90px;
    left: 0;
    display: flex;
}

.maim-box{
    .header-box {
        position: absolute;
        width: 100%;
        top: 0;
        left: 0;
    }
    video{
        position: fixed;
        top: 0;
        left: 0;
        object-fit:contain;
        height: 100%;
    }
    canvas{
        position: fixed;
        width: 100%;
        height: 100%;
        top:0;
        left: 0;
    }
    canvas{
        background-color: #666;
    }
    .framing-box{
        position: fixed;
        width: 340px;
        height: 340px;
        top: 130px;
        left: calc(50% - 170px);
        padding: 0;
        display: flex;
        background-color: rgba(0,0,0,.05);
        border-radius: 20px;
        span{
            position: absolute;
            width: 30px;
            line-height: 30px;
            text-align: center;
            font-size: 40px;
            font-weight: 900;
            color: rgb(0, 174, 255);
            margin: 0;
            padding: 0;
        }
        &>span:nth-of-type(1){
            top: 0;
            left: 0;
        }
        &>span:nth-of-type(2){
            top: 0;
            right: 0;
        }
        &>span:nth-of-type(3){
            bottom: 0;
            left: 0;
        }
        &>span:nth-of-type(4){
            bottom: 0;
            right: 0;
        }
        .scan-loading{
            width: 280px;
            height: 280px;
            background-color: rgba(0,0,0,.2);
            margin: 30px auto 0;
            overflow: hidden;
            // border-top: solid 3px rgba(0, 174, 255,.3);
            border-bottom: solid 3px rgba(0, 174, 255, 1);
            border-radius: 10px;
            animation: scanloading 2.5s ease-in-out infinite;
            // background-image: radial-gradient(red, yellow, green);
            background-image: linear-gradient(rgb(21, 177, 164), rgba(29, 59, 233, 1));
            opacity: .1;
        }
        p{
            position: absolute;
            width: 240px;
            line-height: 30px;
            text-align: center;
            color:#eee;
            bottom: -50px;
            left: calc(50% - 120px);
            border-radius: 5px;
            background-color: rgba(0,0,0,.3);
            font-size: 14px;
            span{
                font-size: 14px;
                position: relative;
                color: rgb(0, 174, 255);
            }
        }
    }
    .op-box{
        position: fixed;
        bottom: 50px;
        width: 100%;
        text-align: center;
        button{
            margin: 5px;
            width: 160px;
            height: 40px;
            outline: none;
            border:0;
            background-color: rgba(0,0,0,.4);
            border-radius: 20px;
            color:rgb(0, 174, 255);
            font-size: 20px;
            font-weight: 900;
        }
        &>button:last-child{
            color: #eee;
        }
    }
}

@keyframes scanloading {
    0%{
        height: 10px;
    }
    // 80%{
    //     height: 255px;
    // }
    // 90%{
    //     height: 270px;
    // }
    100%{
        height: 280px;
    }
}